(describe-register-1): Don't assign to val the value returned by
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 19 Nov 2002 07:37:59 +0000 (07:37 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 19 Nov 2002 07:37:59 +0000 (07:37 +0000)
`remove-list-of-text-properties'.

lisp/register.el

index 3adb84ba8b611d758bf1168ea49126010477eb2f..d149dee200e72b967084e43d9f85072e9c055141 100644 (file)
@@ -140,7 +140,7 @@ If NUMBER is nil, a decimal number is read from the buffer starting
 at point, and point moves to the end of that number.
 Interactively, NUMBER is the prefix arg (none means nil)."
   (interactive "P\ncNumber to register: ")
-  (set-register register 
+  (set-register register
                (if number
                    (prefix-numeric-value number)
                  (if (looking-at "\\s-*-?[0-9]+")
@@ -227,9 +227,8 @@ The Lisp value REGISTER is a character."
        (princ (car val))))
 
      ((stringp val)
-      (setq val
-           (remove-list-of-text-properties 0 (length val)
-                                           yank-excluded-properties val))
+      (remove-list-of-text-properties 0 (length val)
+                                      yank-excluded-properties val)
       (if verbose
          (progn
            (princ "the text:\n")